<h2 class="grid_12">Evento: <?php echo $evento['Evento']['nombre']; ?>&nbsp;&nbsp;&nbsp;
    Desde: <?php echo $evento['Evento']['fecha_inicio']; ?>&nbsp;&nbsp;&nbsp;
    Hasta: <?php echo $evento['Evento']['fecha_inicio']; ?></h2>
<div class="grid_8">
    <div class="box">
        <?php //comienza el contenido que quieres colocar ?>
        <div class="box" id="tab-panel-1">
            <div class="header">
                <?php echo $this->Html->image('icons/packs/fugue/16x16/document--plus.png', array('width' => 16, 'height' => 16)) ?>
                <h3>Fechas</h3>
                <ul>
                    <?php $i = 1; ?>
                    <?php foreach ($dias as $d): ?>
                        <?php //debug($d); ?>
                        <li><a href="#tab-<?php echo $i; ?>"><?php echo $d; ?></a></li>                    
                        <?php $i++; ?>
                    <?php endforeach; ?>
                </ul>
            </div>
            <div class="content">
                <?php $i = 1; ?>
                <?php foreach ($dias as $d): ?>
                    <?php //debug($d); ?>                                                          
                    <div id="tab-<?php echo $i; ?>" class="tab-content">
                        <div class="content no-padding">
                            <?php echo $this->Form->create(); ?>
                            <div class="section _100">
                                <label>
                                    Nombre
                                </label>
                                <div>                        
                                    <?php echo $this->Form->text('nombre', array('class' => 'required')); ?>
                                </div>
                            </div>                                                    
                            <div class="section _100">
                                <label for="time">
                                    Hora
                                </label>
                                <div>
                                    <?php echo $this->Form->text('hora', array('id' => 'time', 'type' => 'time', 'class' => 'required', 'data-date-relative' => 'now')); ?>                        
                                </div>
                            </div>  
                            <div class="section _100">
                                <label>
                                    Pista
                                </label>
                                <div>                        
                                    <?php echo $this->Form->select('pista_id', $pistas, array('class' => 'required')); ?>
                                </div>
                            </div>                                           
                            <div class="actions">
                                <div class="actions-left">
                                    <input type="reset" value="Limpiar" />
                                </div>                
                                <?php
                                $options = array(
                                    'label' => 'Guardar',
                                    'div' => array(
                                        'class' => 'actions-right',
                                    )
                                );
                                echo $this->Form->end($options);
                                ?>                
                            </div>                       
                        </div>
                    </div>
                    <?php $i++; ?>
                <?php endforeach; ?>
            </div> <!-- End of .content -->
        </div> <!-- End of .box -->        
        <?php //fin del contenido a colocar    ?>
    </div> <!-- End of .box -->
</div> <!-- End of .grid_4 -->                                            
<div class="grid_4">
    <?php echo $this->element('menu_eventos'); ?>
</div> <!-- End of .grid_4 -->

<!-- End of #main_content -->
<div class="push clear"></div>

<?php echo $this->element('js_forms'); ?>
<script>
    $(window).load(function(){
        /*
         * Tabs
         */
        $('#tab-panel-1').createTabs();
        $('#tab-panel-2').createTabs();
    });
</script>